/*
============================================================================
FileName	:	LoginDialog.h
Author		:	liyake
Website		:	http://www.liyake.com
Create Data	:	2012-03-08 13:07
Change Data	:	2012-03-08 13:07
Detail		:	The main dialog of xqchat application
============================================================================
*/

#ifndef _LOGIN_DIALOG_H_
#define _LOGIN_DIALOG_H_
#include <QtGui>

namespace XQChat
{
	class CLoginDialog : public QDialog
	{
		Q_OBJECT
	public:
		CLoginDialog(QWidget* parent = 0);
		~CLoginDialog(void);

	protected:
		QTreeWidget* m_pTreeAccounts;
		QLineEdit* m_pEditUsername;
		QLineEdit* m_pEditPassword;


	protected slots:
		void OnBtnAddAccount();
		void OnBtnLogin();
		void OnBtnCancel();

	public:
		static CLoginDialog* getLoginDialog();
	private:
		static CLoginDialog* m_pLoginDialog;
	};
}

#endif  //_LOGIN_DIALOG_H_